package com.bawei.yangzongcai___chenmei.Adpter;

import android.widget.ImageView;

import com.bawei.yangzongcai___chenmei.JavaClass.JavaYaZhou;
import com.bawei.yangzongcai___chenmei.R;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * create by ertu
 * create on 2021/7/19
 * description
 */
public class WQWadpterActivity1 extends BaseQuickAdapter<JavaYaZhou.ResBean.AvatarBean, BaseViewHolder> {


    public WQWadpterActivity1( @Nullable List<JavaYaZhou.ResBean.AvatarBean> data) {
        super(R.layout.wqwadpteractivity2, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, JavaYaZhou.ResBean.AvatarBean userBean) {
        Glide.with(getContext()).load(userBean.getThumb()).into((ImageView) baseViewHolder.getView(R.id.wqw2_img));
    }
}
